﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.ProcurementDomain
{
    /// <summary>
    /// 采购产品质检表
    /// </summary>
    [SugarTable("ProductQuality")]
    public class ProductQuality : Audit
    {
        /// <summary>
        /// 质检id 
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int ProQualityId { get; set; }
        /// <summary>
        ///采购申请id
        /// </summary>
        public int? ProAppId { get; set; }
        /// <summary>
        /// 采购合同id
        /// </summary>
        public int? PurchaseContractsIds { get; set; }
        /// <summary>
        /// 质检主题
        /// </summary>
        public string? QualityName { get; set; }
        /// <summary>
        /// 质检编号
        /// </summary>
        public string? QualityNumber { get; set; }
        /// <summary>
        /// 质检类型
        /// </summary>
        public int? QualityType { get; set; }
        /// <summary>
        /// 合格数
        /// </summary>
        public int? Qualified { get; set; }

        /// <summary>
        /// 质检结果(合格/不合格)
        /// </summary>
        public string? QcOutcome { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        public int? Unqualified { get; set; }
        /// <summary>
        /// 审核结果
        /// </summary>
        public string? AuditResults { get; set; }
        /// <summary>
        /// 人员id
        /// </summary>
        public int? ProContract { get; set; }
        /// <summary>
        /// 质检人员
        /// </summary>
        public string? QcPerson { get; set; }
        /// <summary>
        /// 质检时间
        /// </summary>
        public DateTime? QcTime { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string? ApplyName { get; set; }
        /// <summary>
        /// 审核人员姓名
        /// </summary>
        public string? AugitName { get; set; }
        /// <summary>
        /// 质检状态（待质检/质检完毕/等待审批）
        /// </summary>
        public int? QcState { get; set; }
    }
}
